home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1917 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.0 KB

  1. Path: news.bridge.net!news
  2. From: David Byrden <100101.2547@compuserve.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Object with Interrupt Service Routine
  5. Date: 14 Jan 1996 05:02:05 GMT
  6. Organization: self-employed
  7. Message-ID: <4da2od$6v3@news.bridge.net>
  8. References: <4d6imm$okq@newsbf02.news.aol.com>
  9. NNTP-Posting-Host: ppp-mia2-95.bridge.net
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1N (Windows; I; 16bit)
  14.  
  15.  
  16. >> I have been struggling to create an object that handles hardware
  17. >> interrupt directly.
  18.  
  19. C++  nonstatic member functions take an invisible parameter; the 
  20. address of the object. Thus, even a function with no parameters
  21. will expect to have an address passed to it. So, for example,
  22. if your IS functions are  void f(void)  they will not be
  23. compatible with a member function even if it is also   void mf(void)
  24.  
  25. Can't give you any more advice since I can't understand what you mean
  26. by phrases like "call the object" or "handle hardware interrupt directly"
  27.  
  28.  
  29.      David
  30.  
  31.  
  32.